<?php

/*

Club Stats (club_status.pro.php)

*/
ob_start();
$page_title = "Change User Status";
$rank_check = 1;
include "header.inc.php";
$clubrank_check = 0;
$page_heading = "User Status";
include "club.inc.php";

$set_username = strtolower(ereg_replace(" ", "", $set_username));

$findUser = fetch("SELECT id FROM members2 WHERE username = '$set_username' AND game = '$game'");
$findClubUser = fetch("SELECT id FROM club_members2 WHERE user = '$findUser[id]' AND club = '$clubid' AND game = '$game'");

if (!$findClubUser[id])
{
	die(header("Location: $base_url/club_status.php?game=$game&error=That+user+is+not+part+of+your_club!&clubid=$clubid"));

}

mysql_query("UPDATE club_members2 SET position=$set_rank WHERE user = '$findUser[id]' AND club = '$clubid' AND game = '$game'");

header("Location: $base_url/club_status.php?game=$game&error=You+have+changed+their+rank+successfully.&clubid=$clubid");

?>